<!DOCTYPE html>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index Inicial TFC</title>

<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dijit/themes/claro/claro.css"/>
<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dijit/themes/dijit.css"/>
<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dijit/themes/claro/document.css"/>
<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojox/widget/Calendar/Calendar.css"/>
<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojox/layout/resources/ResizeHandle.css" />

<link rel="stylesheet" type="text/css" href="js/dgrid/dgrid/css/dgrid.css"/>
<link rel="stylesheet" type="text/css" href="js/dgrid/dgrid/css/skins/claro.css"/>
<link rel="stylesheet" type="text/css" href="js/es/tfc/widgets/css/LocationSelector.css"/>
<link rel="stylesheet" type="text/css" href="themes/ClaroTunning.css"/>
<link rel="stylesheet" type="text/css" href="themes/Formulario.css"/>
<link rel="stylesheet" type="text/css" href="themes/gmaps/gmaps.css"/>


	<style type="text/css">
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}
	</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBuPTzjjHCiAnGObM9j4QlEUFEQVv2XFf0&sensor=false&libraries=places"></script>
  
<script type="text/javascript" src="js/es/tfc/maps/ContextMenu.js"></script>
  
  	
<script>
console.log("Cargando config dojoConfig 1");

	var map;

	var dojoConfig = {
		parseOnLoad: true,
		async: false, //REVISAR SI ES MEJOR SINCRONO O ASÍNCRONO
		dojoBlankHtmlUrl: location.pathname.replace(/\/[^/]+$/, '') + '/blank.html',
		packages: [{
			name: 'fusion',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/fusion'
		},{
			name: 'auth',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/fusion/auth'
		},{
			name: 'ui',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/ui'
		},
		 {
			name: 'dgrid',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/dgrid/dgrid'
		},
		{
			name: 'xstyle',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/dgrid/xstyle'
		},
		{
			name: 'put-selector',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/dgrid/put-selector'
		},
		{
			name: 'nls',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/nls'
		},
		{
			name: 'widget',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/widgets'
		},
		{
			name: 'gmaps',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/maps'
		},
		{
			name: 'tools',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/tools'
		},
		{
			name: 'chart',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/chart'
		}]
	};

	
	
</script>



<!-- load dojo and provide config via data attribute 
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js"></script>-->
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojo/dojo.js"></script>

<script type="text/javascript">

	
	function autenticarEnGoogle(){
		console.log("index.html::autenticarEnGoogle");
		require(["auth/authenticateGoogle"], function (authenticateGoogle) {
			authenticateGoogle.init();
	     });
	}
	
	

	
	
</script>
<script src="https://apis.google.com/js/client.js?onload=autenticarEnGoogle"></script>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type="text/javascript">

      // Load the Visualization API and the piechart package.
      google.load('visualization', '1.0', {'packages':['corechart','map']});
      // Set a callback to run when the Google Visualization API is loaded.
      google.setOnLoadCallback(console.log("index.html::cargadas liberías google"));
</script>

</head>
<body class="claro">
<div data-dojo-type="dijit/layout/ContentPane" id="loadingInitDiv"><img src="images/loading.gif"/></div>
</body>
</html>